module.exports = async (ctx, next) => {
  let start_time = Date.now()
  await next()
  let end_time = Date.now()
  let time = end_time - start_time
  ctx.set('X_response_time', time + 'ms')
}